﻿using EentitfFrameworkMvc.Models;
using Microsoft.EntityFrameworkCore;

namespace EentitfFrameworkMvc.Service
{
   /* public class StudentService
    {
        Data01Context _context = new Data01Context(new DbContextOptions<Data01Context>());
        public void SaveAdd(String sname, String spwd, String ssex, int sage, String ssf)
        {
            TbStudent student = new TbStudent();
            student.Sname = sname;
            student.Spwd = spwd;
            student.Ssex = ssex;
            student.Sage = sage;
            student.Ssf = ssf;
            _context.Add(student);
            _context.SaveChanges();
        }
    }*/
}
